package com.atguigu.srb.core.service;

import com.atguigu.srb.core.dto.ExcelDictDTO;
import com.atguigu.srb.core.entity.Dict;
import com.baomidou.mybatisplus.extension.service.IService;

import java.io.InputStream;
import java.util.List;

/**
 * <p>
 * 数据字典 服务类
 * </p>
 *
 * @author cfx
 * @since 2022-06-25
 */
public interface DictService extends IService<Dict> {
     void importData(InputStream inputStream);

     List<ExcelDictDTO> listDictData();

     List<Dict> listByParentId(Long parentId);

    List<Dict> findListByDictCode(String dictCode);

    String getNameByParentDictCodeAndValue(String dictCode, Integer value);
}
